package com.design.mediator.chatroom;

// 具体中介者类
class ChatRoom implements ChatMediator {
    @Override
    public void sendMessage(String message, User user) {
        System.out.println(user.getName() + " sent message: " + message);
        // 在实际应用中，还可以将消息发送给其他用户
    }
}
